﻿using EPiServer.Security;
using OpenWaves.ImageTransformations.Web;

namespace OpenWaves.ImageTransformations.EPiServer
{
    public class ForEditorsImageTransformationUrlValidationRule : IImageTransformationUrlValidationRule
    {
        public bool ValidateImageTransformationUrl(string imageTransformation, Url url)
        {
            return PrincipalInfo.HasEditAccess;
        }

        public void AugmentImageTransformationUrl(string imageTransformation, UrlBuilder urlBuilder)
        {
        }
    }
}